package com.tuhu.dai.infrastructure.adapter.port;

import com.tuhu.dai.domain.order.model.entity.ProductEntity;
import com.tuhu.dai.domain.order.port.IProductPort;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @author: DaiTao
 * @description:
 * @create: 2025-08-31 21:12
 **/
@Service
@Slf4j
public class ProductPort implements IProductPort {

    @Override
    public ProductEntity queryProductByProductId(String productId) {

        ProductEntity productVO = new ProductEntity();
        productVO.setProductId(productId);
        productVO.setProductName("测试商品");
        productVO.setProductDesc("这是一个测试商品");
        productVO.setPrice(new BigDecimal("6.13"));
        return productVO;
    }
}
